<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<?php $this->load->helper('HTML');
echo link_tag('css/style2.css');
echo link_tag('images/favicon.ico','shortcut icon','image/x-icon');
?>
</head>
<?php

header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=lihat_excel_datapracm.xls");
header("Pragma: no-cache");
header("Expires: 0");
?>
<body>
<table width="1300" align="center">
<tr>
   	  <td align="center">
        <table width="1300" height="165" align="center">
        <tr>
          <td width="440" rowspan="4" valign="top"><img src="<?php echo base_url();?>images/logo.jpg" />&nbsp;</td>
          <td width="203">&nbsp;</td>
     	  <td width="41">&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
          <td width="41">&nbsp;</td>
        </tr>
        <tr>
          
        </tr>
        <tr>
            
        </tr>
        <tr align="center" class="judul">
            <td colspan="2">
DATA PRACM bulan ke-<?php echo $bulan;?></td>
          <td>&nbsp;</td>
        </tr>
    </table>    </td>
    <tr>
    	<td align="center">
        	<table width="1295" border="3" align="center" class="detail">
			<tr class="detail2">
			  <th width="139">KODE DEALER</th>
              <th width="137">NAMA DEALER</th>
              <th width="137">NAMA UPLINE</th>
              <th width="77">UNIT</th>
              <th>TANGGAL REGISTER</th>
              <th>CABANG</th>
              <th>PENGAJUAN BULANAN</th>
              </tr>
               <tr class="detail2">
					<td align="left">&nbsp;</td>
                    <td align="left">&nbsp;</td>
                    <td align="center">&nbsp;</td>
                    <td align="left">&nbsp;</td>
                    <td align="left">&nbsp;</td>
                    <td align="center">&nbsp;</td>
               </tr>
               <?php foreach($dataexcel as $row){
				echo('<tr class="detail2">
					<td align="left">'.$row->strkode_dealer.'</td>
                    <td align="left">'.$row->strnama_dealer.'</td>
                    <td align="left">'.$row->strnama_upline.'</td>
                    <td align="center">'.$row->strnama_unit.'</td>
                    <td align="left">'.$row->tanggal.'</td>
                    <td align="left">'.$row->cabang.'</td>
                    <td align="center">'.$row->bulan.'</td>
               </tr>');	
			   }?>
		</table>      
	  </td>
    </tr>
</table>
</body>
</html>